From 9970820dbd96cd2eeaad6f52fa9074ac86c8d270 Mon Sep 17 00:00:00 2001 From: "sos22@donkeykong.cl.cam.ac.uk" Date: Wed, 28 Jul 2004 16:38:37 +0000 Subject: [PATCH] bitkeeper revision 1.1098.1.4 (4107d68d24en-s2mTTxoCRqdg3l1fA) Avoid a bogus tail call optimisation. --- xen/common/keyhandler.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xen/common/keyhandler.c b/xen/common/keyhandler.c index 0e137a319e..c412091c6b 100644 --- a/xen/common/keyhandler.c +++ b/xen/common/keyhandler.c @@ -119,6 +119,9 @@ void do_debug_key(unsigned char key, void *dev_id, struct pt_regs *regs) { extern void trap_to_xendbg(void); trap_to_xendbg(); + asm volatile ("nop"); /* Prevent the compiler doing tail call + optimisation, as that confuses xendbg a + bit. */ } void initialize_keytable(void) -- 2.30.2